<?php 
$order = $this->order;
$items = $this->items;
?>
<div class='center_form'>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>
        <div class='center_form_btn_div'  onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl(); ?>/order/order");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>


<div class="centerbig_form">
    <div class="center_top"><span class="center_top_title"><?php echo $this->translate("audit"); ?></span></div>
        <div class="right_form_content">            
	        <div class="centerbig_right">           
               <div class="form_content">
                    <form action="<?php echo HttpUtil::baseUrl(); ?>/order/order/subaudit" method="post" id="auditForm"> 
                    <div>
                    		<input type="hidden" name="orderId" value="<?php echo $order['id'];?>" id="orderId">                
                            <div class="form_content">                        
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("state"); ?></div>
                                <div class='form_element_text'>
                                    <select name="status">                                 
                                            <option value="<?php echo $order['status'];?>" selected ><?php echo OrderConstant::getStatus($order['status']);?></option>
                                            <option value="2"><?php echo OrderConstant::getStatus('2');?></option>
                                            <option value="4"><?php echo OrderConstant::getStatus('4');?></option>	
                                    </select>
                                </div>            
                            </div>
                            <div class='clear'></div>
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("customerid"); ?></div>
                                <div class='form_element_text'><?php echo $order['customer_id'];?></div>
                            </div>
                            <div class='clear'></div>
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("shippingExpect"); ?></div>
                                <div class='form_element_text'><?php echo OrderConstant::getShippingExpect($order['shipping_expect']);?></div>
                            </div>
                            <div class='clear'></div>                            
                            <div class='form_line_div'>
                                <div class='form_element_label'><?php echo $this->translate("paymentMethod"); ?></div>
                                <div class='form_element_text'><?php echo OrderConstant::getShippingExpect($order['payment_method']);?></div>
                            </div>
                            <div class='clear'></div>
                            </div>                            
                    </div>
                    <div>
                        <div style="float:left;width:45%" id="shippingaddress">
                            <input type="hidden" name="sid" value="<?php echo $order['s_id'];?>" id="sid">
                        	<div class="center_top_title"><?php echo $this->translate("shippingaddress"); ?></div>
                            <div class='clear'>&nbsp;</div>
                            <div class='form_element_label'><?php echo $this->translate("sfirstname"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_first_name'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("slastname"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_last_name'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("saddress1"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_address1'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("saddress2"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_address2'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("scity"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_city'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("sstate"); ?></div>
                            <div class='form_element_text'><?php echo StateConstant::getState($order['s_state']);?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("szipcode"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_zip_code'];?></div>
                            <div class='clear'></div>
                            <div class='form_element_label'><?php echo $this->translate("sphone"); ?></div>
                            <div class='form_element_text'><?php echo $order['s_phone'];?></div>
                            <div class='clear'></div>
                        </div>
                        <div style="float:right;width:50%">
                            <input type="hidden" name="bid" value="<?php echo $order['b_id'];?>" id="bid">
                        	<div class="center_top_title"><?php echo $this->translate("billingaddress"); ?></div>
                            <div class='clear'>&nbsp;</div>
                            <div id="billingaddress">
                                <div class='form_element_label'><?php echo $this->translate("bfirstname"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_first_name'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("blastname"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_last_name'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("baddress1"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_address1'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("baddress2"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_address2'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bcity"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_city'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bstate"); ?></div>
                                <div class='form_element_text'><?php echo StateConstant::getState($order['b_state']);?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bzipcode"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_zip_code'];?></div>
                                <div class='clear'></div>
                                <div class='form_element_label'><?php echo $this->translate("bphone"); ?></div>
                                <div class='form_element_text'><?php echo $order['b_phone'];?></div>
                                <div class='clear'></div>
                            </div>
                        </div>    
                    </div>
                    <div class="clear"></div>
                    <div class="dbgrid_center_right">                    
                        <div style="float:left;width:25%" class="center_top_title"><?php echo $this->translate("items"); ?></div>
                    </div>
                    <div class="clear"></div>
                    <div class="dbgrid_center_right">                    
                        <div id="items">
                            <?php foreach($items as $key=>$item) { ?>
                        	<div class='form_element_label'><?php echo $this->translate("itemsid"); ?></div>
                            <div class='form_element_text'><?php echo $item['item_id'] ?></div>
                            <div class='clear'></div>
                            <?php } ?>
                            <div class='clear'></div>
                        </div>
                    </div>                                                         
                    </form>
               </div>                    
	        </div>            
        </div>
        <div class="clear"></div>
</div>
<div class="clear"></div>